// import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';

// CancelFunc showLoading() {
//   return BotToast.showCustomLoading(
//     toastBuilder: (cancelFunc) {
//       return const LoadingWidget();
//     },
//     backgroundColor: Colors.transparent,
//   );
// }

class LoadingWidget extends StatelessWidget {
  const LoadingWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.transparent,
      child: Container(
        // color: _bgColor,
        alignment: Alignment.center,
        width: 180,
        height: 180,
        decoration: const BoxDecoration(
            color: Colors.black54,
            borderRadius: BorderRadius.all(Radius.circular(8)),
            boxShadow: [
              // BoxShadow(color: Colors.white, blurRadius: 1),
            ]),
        child: const SizedBox(
          width: 80,
          height: 80,
          child: CircularProgressIndicator(
            strokeWidth: 8,
            backgroundColor: Colors.white70,
//            backgroundColor: _bgColor,
          ),
        ),
      ),
    );
  }
}
